package com.example.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.basic.service.ISysUserService;
import com.example.util.AjaxResult;

@RestController
@RequestMapping(value = "/admin/home")
public class HomeController {

	@Autowired
	private ISysUserService userService;

	@RequestMapping(value = "/login")
	public AjaxResult login(String account, String password) {

		return userService.login(account, password);
	}

	@RequestMapping(value = "/logout")
	public AjaxResult logout() {

		return userService.logout();
	}

}
